﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace CeremonyBackground.Models
{
    /// <summary>
    /// 用户博饼记录
    /// </summary>
    public class BobingPrizeResult
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 奖项Id
        /// </summary>
        public int BobingPrizeId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 博饼结果
        /// </summary>
        public string PrizeResult { get; set; }
        /// <summary>
        /// 中奖时间
        /// </summary>
        public DateTime CreateTime { get; set; }


        protected BobingPrizeResult() { }


        public BobingPrizeResult(int userId, int bobingPrizeId, string prizeResult)
        {
            this.UserId = userId;
            this.BobingPrizeId = bobingPrizeId;
            this.PrizeResult = prizeResult;
            this.CreateTime = DateTime.Now;
        }
    }
}
